<?php
defined( '_AppMiage' ) or die( 'Restricted access' );


    $pays = Lieu::getPays();

    $str = "{";
    $str .= '"pays" :[';
    foreach($pays as $code=>$p)
    {
        $str .= '{';
            $str .= '"code" : "'.$code.'",';
            $str .= '"nom" : "'.$p['FR'].'"';
        $str .= '},';
    }
    $str .= ']}';
    echo $str;
?>
